import 'package:flutter/material.dart';

import 'app.dart';

class LoadingPage extends StatefulWidget {
  const LoadingPage({super.key});

  @override
  State<LoadingPage> createState() => _LoadingPageState();
}

class _LoadingPageState extends State<LoadingPage> {

  @override
  void initState(){
    super.initState();

    Future.delayed(const Duration(seconds: 1),(){
      _getHasSkip();
    });
  }
  void _getHasSkip () {
    //Navigator.of(context).pushReplacementNamed("splash");

    Navigator.of(context).pushAndRemoveUntil(
        MaterialPageRoute(
            builder: (context) => const App()),
            (route) => route == null);
  }

  @override
  Widget build(BuildContext context) {
    return const Placeholder();
  }
}
